package com.example.shushiyunsst.fragment.main.home.child.icon_sst.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.example.shushiyunsst.R;
import com.example.wallet.global.AppGlobals;

public class CurrencyTransferBean {


    /**
     * txid : 14
     * nickName : 话语预感
     * userLogo : http://162.247.99.201:81/05e2d5a9279c413dadacf6f9215fe8151602323212139839.jpeg
     * stock : 111110
     * limitMin : 100
     * limitMax : 10000
     * txNums : 0
     * credibility : 100
     * selledNums : 0
     * price : 1.02
     * createTime : 2020-10-15 18:01:26
     * updateTime : 2020-10-15 18:01:26
     * txStatus : 1
     * tokenType : SST
     * txType : 1
     * uid : 2
     * isSupportWx : 1
     * isSupportAipay : 1
     * isSupportBank : 1
     */

    @JSONField(name = "txid")
    private int txid;

    @JSONField(name = "nickName")
    private String nickName;

    @JSONField(name = "userLogo")
    private String userLogo;

    @JSONField(name = "stock")
    private int stock;

    @JSONField(name = "limitMin")
    private int limitMin;

    @JSONField(name = "limitMax")
    private int limitMax;

    @JSONField(name = "txNums")
    private int txNums;

    @JSONField(name = "credibility")
    private String credibility;

    @JSONField(name = "selledNums")
    private int selledNums;

    @JSONField(name = "price")
    private double price;

    @JSONField(name = "createTime")
    private String createTime;

    @JSONField(name = "updateTime")
    private String updateTime;

    @JSONField(name = "txStatus")
    private int txStatus;

    @JSONField(name = "tokenType")
    private String tokenType;

    @JSONField(name = "txType")
    private int txType;

    @JSONField(name = "uid")
    private int uid;

    @JSONField(name = "isSupportWx")
    private int isSupportWx;

    @JSONField(name = "isSupportAipay")
    private int isSupportAipay;

    @JSONField(name = "isSupportBank")
    private int isSupportBank;

    public int getTxid() {
        return txid;
    }

    public void setTxid(int txid) {
        this.txid = txid;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserLogo() {
        return userLogo;
    }

    public void setUserLogo(String userLogo) {
        this.userLogo = userLogo;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getLimitMin() {
        return limitMin;
    }

    public void setLimitMin(int limitMin) {
        this.limitMin = limitMin;
    }

    public int getLimitMax() {
        return limitMax;
    }

    public void setLimitMax(int limitMax) {
        this.limitMax = limitMax;
    }

    public int getTxNums() {
        return txNums;
    }

    public String getTxNumStr() {
        return String.valueOf(txNums);
    }

    public void setTxNums(int txNums) {
        this.txNums = txNums;
    }

    public String getCredibility() {
        return credibility;
    }

    public String getCredibility22() {
        return credibility + "%";
    }

    public void setCredibility(String credibility) {
        this.credibility = credibility;
    }

    public int getSelledNums() {
        return selledNums;
    }

    public String getSelledNumStr() {
        return String.valueOf(selledNums);
    }

    public void setSelledNums(int selledNums) {
        this.selledNums = selledNums;
    }

    public double getPrice() {
        return price;
    }

    public String getPriceStr() {
        return price + "\t" + getPriceUnit();
    }

    public String getPriceUnit() {
        //        if (sst.equals(tokenType)){
//            return sst;
//        }
        return AppGlobals.getApplication().getString(R.string.wallet_sst);
    }

    public String getLimit() {
        return limitMin + tokenType + " - " + limitMax + tokenType;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public int getTxStatus() {
        return txStatus;
    }

    public void setTxStatus(int txStatus) {
        this.txStatus = txStatus;
    }

    public String getTokenType() {
        return tokenType;
    }

    public void setTokenType(String tokenType) {
        this.tokenType = tokenType;
    }

    public int getTxType() {
        return txType;
    }

    public void setTxType(int txType) {
        this.txType = txType;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getIsSupportWx() {
        return isSupportWx;
    }

    public boolean isSupportWx() {
        return isSupportWx == 1;
    }

    public void setIsSupportWx(int isSupportWx) {
        this.isSupportWx = isSupportWx;
    }


    public int getIsSupportAipay() {
        return isSupportAipay;
    }

    public boolean isSupportAipay() {
        return isSupportAipay == 1;
    }

    public void setIsSupportAipay(int isSupportAipay) {
        this.isSupportAipay = isSupportAipay;
    }

    public int getIsSupportBank() {
        return isSupportBank;
    }

    public boolean isSupportBank() {
        return isSupportBank == 1;
    }

    public void setIsSupportBank(int isSupportBank) {
        this.isSupportBank = isSupportBank;
    }
}
